<div class="g12 nodrop" style="margin-bottom: 43px;">

    <div style="width: 100%;">

        <h3>Pregled komentara</h3>
        <p style="line-height: 13px;">Komentari</p>



        <div class="ex_highlight_row grid">

            <table class="datatable border" cellpadding="0" cellspacing="0" id="example">

                <thead>                      
                    <tr style="background-image: url(<?=$url?>assets/img/sort_row_bg.gif); background-repeat: repeat-x; background-position: 0 0 ;">
                        <th class="tbleft" style="width: 300px;">Tekst</th><th>Autor</th><th>Članak</th><th>Datum</th><th>Akcija</th> 
                    </tr>
                </thead>

                <tbody>

                    <?
                        foreach($comments as $row){?>

                        <tr>
                           
                            <td align="left" style="padding: 10px 13px;">
                                     <?=$row['text']?>
                            </td>
                             <td class="naziv">
                                <?=$row['firstname'].' '.$row['lastname']?>
                            </td>
                            <td class="naziv" style="font-weight: bold;">
                                <?=$row['title']?>
                            </td>
                            <td class="autor"><?= date('d.m.Y H:i',$row['datetime']);?>h</td>

                            <td class="akcija" style="width: 130px; text-align: center;">
                                <a href="javascript:" class="aprove small commentstatus" id="<?=$row['id']?>">Odobri</a> |
                                <a href="javascript:" class="block small commentstatus" id="<?=$row['id']?>">Blokiraj</a>
                            </td> 
                        </tr>    

                        <?}

                    ?>

                </tbody>

            </table>

        </div>

    </div>

</div>

<style>
    table td, table td.naziv{
        text-align: left; vertical-align: middle; line-height: 16px; padding: 3px 3px;
    }
    table td, table td.autor{
        text-align: left; vertical-align: middle;
    }
    table td, table td.akcija{
        vertical-align: middle;
    }
</style>
